<p>
  <b>Fname:</b>
  <%=h @person.fname %>
</p>

<p>
  <b>Lname:</b>
  <%=h @person.lname %>
</p>

<p>
  <b>Phonenumber:</b>
  <%=h @person.phonenumber %>
</p>

<table>
  <tr>
    <th>Event</th>
    <th>Value</th>
  </tr>

<% @person.bets.each do |bet| %>
  <tr>
    <td><%= bet.event %></td>
    <td><%= bet.value %></td>
    <td><%= link_to 'Show', bet %></td>
    <td><%= link_to 'Edit', edit_bet_path(bet) %></td>
    <td><%= link_to 'Destroy', bet, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>


<%= link_to 'Edit', edit_person_path(@person) %> |
<%= link_to 'Bets', bets_path %> |
<%= link_to 'People', people_path %>
